package com.sense.kukoo.common.wiget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.sense.kukoo.common.R;

public class SearchRecommendView extends FrameLayout {

    private TextView tv_recommend_1;
    private TextView tv_recommend_2;
    private TextView tv_recommend_3;
    private TextView tv_recommend_4;
    private TextView tv_recommend_5;
    private TextView tv_recommend_6;

    public SearchRecommendView(@NonNull Context context) {
        super(context);
        init();
    }

    public SearchRecommendView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public SearchRecommendView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    public SearchRecommendView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        init();
    }

    private void init(){
        LayoutInflater.from(getContext()).inflate(R.layout.common_search_recommend, this, true);
        //
        tv_recommend_1 = findViewById(R.id.tv_recommend_1);
        tv_recommend_2 = findViewById(R.id.tv_recommend_2);
        tv_recommend_3 = findViewById(R.id.tv_recommend_3);
        tv_recommend_4 = findViewById(R.id.tv_recommend_4);
        tv_recommend_5 = findViewById(R.id.tv_recommend_5);
        tv_recommend_6 = findViewById(R.id.tv_recommend_6);
    }
}
